From 2899fbe7a39947f12b3ae3c41e23a1d16811c801 Mon Sep 17 00:00:00 2001 From: Android Tools Maintainers Date: Tue, 5 Apr 2022 12:39:26 +0100 Subject: [PATCH] Adapt asm output of clang that no #/$ is placed before data Forwarded: not-needed Gbp-Pq: Name adapt-asm-output-of-clang-that-no-is-placed-before-data.patch --- tools/cpp-define-generator/make_header.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cpp-define-generator/make_header.py b/tools/cpp-define-generator/make_header.py index 1b13923..ca87e5e 100755 --- a/tools/cpp-define-generator/make_header.py +++ b/tools/cpp-define-generator/make_header.py @@ -31,7 +31,7 @@ import sys def convert(input): """Find all defines in the compiler generated assembly and convert them to #define pragmas""" - asm_define_re = re.compile(r'">>(\w+) (?:\$|#)([-0-9]+) (?:\$|#)(0|1)<<"') + asm_define_re = re.compile(r'">>(\w+) (?:\$|#|)([-0-9]+) (?:\$|#|)(0|1)<<"') asm_defines = asm_define_re.findall(input) if not asm_defines: raise RuntimeError("Failed to find any asm defines in the input") -- 2.30.2